package org.jradweb.tools.generator.untils;

import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;

import org.jradweb.tools.generator.freemarker.util.DefaultTemplateLoader;

import freemarker.template.Configuration;
import freemarker.template.Template;

public class UnitlsMain {

	public static void main(String[] args){
//		Configuration conf=new Configuration();
//		conf.setLocale(java.util.Locale.CHINESE);
//		conf.setTemplateLoader(new DBScriptTemplateLoader());
//		conf.setLocalizedLookup(false);
//		//conf.setTemplateLoader(new DefaultTemplateLoader());
		try {
//			Template template=conf.getTemplate("e:/work-temp/${configdb_name}/src/main/config/db/2.1.9.0/2008122505_domaindb_configdb_view_V2.0.2_to_V2.0.3.sql");
//			Map<String,String> params=new HashMap<String,String>();
			java.io.StringWriter writer=new StringWriter();
//			params.put("configdb_name", "configdb");
//			template.process(params, writer);
//			
			System.out.println(writer.toString());
			return;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			System.out.println("finally");
		}
	}
}
